package ooday05.demo;

public class StaticDemo {
    public static void main(String[] args) {
        //演示静态变量
        StaticVar o1=new StaticVar();
        o1.show();
        StaticVar o2=new StaticVar();
        o2.show();
        StaticVar o3=new StaticVar();
        o2.show();
        System.out.println(StaticVar.b);

        StaticBlook o4=new StaticBlook();//加载时自动执行静态块,并且只会执行一次
        StaticBlook o5=new StaticBlook();
        StaticBlook o6=new StaticBlook();

        StaticMethod.show2();
        StaticMethod.plus(1,2);
    }
}
